Getters

JavaScript Getters and Setters

Getters and setters allow you to get and set object properties via methods.

        Why Using Getters and Setters?
            It gives simpler syntax
            It allows equal syntax for properties and methods
            It can secure better data quality
            It is useful for doing things behind-the-scenes